<?php
/**
* Mapping for plugins, name of the class is derived by the value of a field
* 
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* 
* @copyright Copyright (c) 2008-2009 Ne8, LLC <josh.ribakoff@gmail.com>
* @license New BSD License
* @version 0.1
* @category Shuffler
* @package Shuffler_Mapper
* @subpackage Mapping
*/
class Shuffler_Mapper_Mapping_Plugin extends Shuffler_Mapper_Mapping
{    
    protected $fk;
    
    public function getType()
    {
        return 'plugin';   
    }
    
    public function getModelName( $rs )
    {
        $field = $this->getAliasedField();
        $class = $this->class . '_' . ucfirst( $rs[ $field ] );
        $pk = $this->sourceMapper->primaryKey();
        return $class;
    }
    
    public function getValue()
    {
        return null;
    }
}